package com.test.varargus;

public class VarArguments {

	public static void main(String[] args) {
		Integer[] nums = new Integer[] { new Integer(1), new Integer(11) };
		f(nums);
		f(new Integer(12),new Integer(13));
	}

	public static void f(Integer... num) {
		if (num == null) {
			System.out.println("num is null");
			return;
		}
		for (Integer i : num) {
			System.out.println(i);
		}
	}

}
